import request from '@/api/request'

export const login = (data) => request.post('/auth/login', data)
export const register = (data) => request.post('/auth/register', data)
export const logout = () => request.post('/auth/logout')

export const getUserInfo = () => {
  return request({
    url: '/auth/user',
    method: 'get'
  })
}
